<script setup>
  //js 代码
  import { ref } from 'vue'

  defineProps({
    msg: String,
  })

  const count = ref(0)

  const zhong = ()=>{
    alert("中彩票 2个亿")
  }

  const dianwo = ()=>{
    alert("中午吃饭了吗...")
  }

</script>

<template>
<!-- 写html页面    -->
  <button @click="zhong"> 点我中彩票  </button>
  <button class="bg" @click="dianwo"> 点我 大家有好运   </button>

</template>

<style scoped>
    /*写样式 */
    .bg{
      background-color: #535bf2;
      color: white;
    }
</style>
